package com.github.m6d21.sso.service.role;

import com.github.m6d21.sso.model.role.dto.RolePermissionDTO;
import com.github.m6d21.sso.model.role.qo.RolePermissionQO;
import com.github.m6d21.sso.model.role.vo.UnionRole;
import java.util.List;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/1/4 Fri 17:19:00
 * @since 1.0.0
 */
public interface IUnionRoleService {

    List<UnionRole> unionQuery(RolePermissionQO rolePermissionQO);

    Boolean saveRolePermissionRelation(RolePermissionDTO rolePermissionDTO);

    void saveBatchRolePermissionRelation(List<RolePermissionDTO> rolePermissionDTOList);

    void deleteBatchRolePermissionRelation(Integer roleId, List<Integer> permissionIds);

    void allocPermissions(Integer roleId, List<Integer> allocPermissionIds, List<Integer> deletePermissionIds);
}
